package com.face.server.service;

import com.face.server.entity.Admin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by ryan on 2018/1/29.
 */
public interface AdminService {
    Admin addAdmin(String adminName,Boolean adminSex, String adminPhone,String adminIdentity);

    Admin deleteOwnBuilds(String id);

    Page<Admin> listAdminsInBuildMgt(Pageable pageRequest, String searchKey);

    Admin asignBuilds(String id, String searchData);

    Admin addToBuildMgt(String name);

    List<Admin> listAdmins(String searchKey);


    Admin findOne(String id);

    Admin editInfo(String id, String adminName,Boolean adminSex, String adminPhone, String adminIdentity);

    List<Integer> listOwnBuilds(String id);

    String changePwd(String authAndPwd);

    String findPwd(String identityAndPhone);


}
